package com.ruoyi.wisdom.domain.swap;

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import org.springframework.data.annotation.Transient;

/**
 * 家长管理对象 iot_student_parent
 * 
 * @author ruoyi
 * @date 2024-12-31
 */
@JsonIgnoreProperties(ignoreUnknown = true)
public class SwapStudentParent extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** $column.columnComment */
    private Long id;

    /** 学校ID */
    @Excel(name = "学校ID")
    @JsonProperty("com_id")
    private Long comId;

    /** 家长UID */
    @Excel(name = "家长UID")
    @JsonProperty("parent_uid")
    private Long parentUid;

    /** 家长名字 */
    @Excel(name = "家长名字")
    @JsonProperty("parent_name")
    private String parentName;

    /** 家长电话 */
    @Excel(name = "家长电话")
    @JsonProperty("parent_phone")
    private String parentPhone;

    /** 学生ID */
    @Excel(name = "学生ID")
    @JsonProperty("student_id")
    private Long studentId;

    /** 联系人关系 */
    @Excel(name = "联系人关系")
    private String relationship;

    /** 备注 */
    @Excel(name = "备注")
    private String remarks;

    /** 0 是没相片 1是有相片 */
    @Excel(name = "0 是没相片 1是有相片")
    @JsonProperty("is_photo")
    private Integer isPhoto;

    /** 禁用启用：1启用， 0禁用 */
    @Excel(name = "禁用启用：1启用， 0禁用")
    private Integer enabled;

    @Transient
    private String operate;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setComId(Long comId) 
    {
        this.comId = comId;
    }

    public Long getComId() 
    {
        return comId;
    }
    public void setParentUid(Long parentUid) 
    {
        this.parentUid = parentUid;
    }

    public Long getParentUid() 
    {
        return parentUid;
    }
    public void setParentName(String parentName) 
    {
        this.parentName = parentName;
    }

    public String getParentName() 
    {
        return parentName;
    }
    public void setParentPhone(String parentPhone) 
    {
        this.parentPhone = parentPhone;
    }

    public String getParentPhone() 
    {
        return parentPhone;
    }
    public void setStudentId(Long studentId) 
    {
        this.studentId = studentId;
    }

    public Long getStudentId() 
    {
        return studentId;
    }
    public void setRelationship(String relationship) 
    {
        this.relationship = relationship;
    }

    public String getRelationship() 
    {
        return relationship;
    }
    public void setRemarks(String remarks) 
    {
        this.remarks = remarks;
    }

    public String getRemarks() 
    {
        return remarks;
    }
    public void setIsPhoto(Integer isPhoto) 
    {
        this.isPhoto = isPhoto;
    }

    public Integer getIsPhoto() 
    {
        return isPhoto;
    }
    public void setEnabled(Integer enabled) 
    {
        this.enabled = enabled;
    }

    public Integer getEnabled() 
    {
        return enabled;
    }

    public void setOperate(String operate){ this.operate = operate; }
    public String getOperate(){ return operate; }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("comId", getComId())
            .append("parentUid", getParentUid())
            .append("parentName", getParentName())
            .append("parentPhone", getParentPhone())
            .append("studentId", getStudentId())
            .append("relationship", getRelationship())
            .append("remarks", getRemarks())
            .append("isPhoto", getIsPhoto())
            .append("enabled", getEnabled())
            .append("createTime", getCreateTime())
            .append("updateTime", getUpdateTime())
            .append("operate", getOperate())
            .toString();
    }
}
